//
//  CloudDataManager.h
//  OrangeNote
//
//  Created by 刘崇龙 on 16/1/25.
//  Copyright © 2016年 崇龙. All rights reserved.
//

#import <Foundation/Foundation.h>
@class NotebookModel;
@class NoteModel;

typedef void(^SendData)(NSMutableArray *);

@interface CloudDataManager : NSObject

// 笔记本
// 为当前用户创建笔记本
- (void)insertNotebookWithNotebookModel:(NotebookModel *)notebookModel;

// 删除笔记本
- (void)deleteNotebookWithID:(NSString *)ID;

// 更改笔记本名
- (void)updateNotebookNameWithID:(NSString *)ID andNewName:(NSString *)newName;

// 查询笔记本
- (void)selectNotebookWhereKey:(NSString *)key equalTo:(id)something;
// 返回查询结果Block
@property (nonatomic, copy) SendData sendNotebookArray;



// 笔记
// 根据笔记本ID 插入笔记
- (void)insertNoteWithNoteModel:(NoteModel *)noteModel andNotebookID:(NSString *)notebookID;

// 根据ID删除笔记
- (void)deleteNoteWithNoteID:(NSString *)ID;

// 根据ID修改笔记
- (void)updateNoteWithID:(NSString *)ID andNewNote:(NoteModel *)note;

// 指定查询方法,查询笔记
- (void)selectNoteWhereKey:(NSString *)key equalTo:(id)something;
// 返回查询结果Block
@property (nonatomic, copy) SendData sendNoteArray;

@end
